package com.briup.day41;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;

public class TestServer {

	public static void main(String[] args) throws IOException {
		ServerSocket ss = new ServerSocket(8088);
		
		Socket client = ss.accept();
		System.out.println("客户端已连接...");
		
		
		BufferedReader br = new BufferedReader(new InputStreamReader(
				client.getInputStream()));
				
		int i = 0;
		while(true) {
			System.out.println(++i + ":" + br.readLine());
		}
		
		
		
		
	}
}
